package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * Created by wangfan on 2017/5/22.
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OfficeSupplies {
    private Integer suppliesId;

    private Integer communityId;
    private Community community;

    private Integer departId;
    private Depart depart;


    private Integer userId;
    private User user;

    private String personName;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date registerTime;

    private String suppliesName;

    private Double unitCost;

    private Integer count;

    private Double sum;

    private String workexpType;

    private String paymentMode;

    private String comment;

    private Integer isOff;
    private Integer isDelete;
    private Integer submitNumber;

    private Integer hasDetail;

    private String field2;

    private List<OfficeSuppliesDetail> details;

    public OfficeSupplies(Integer suppliesId, Integer communityId, Integer departId, Integer userId, String personName, Date registerTime, String suppliesName, Double unitCost, Integer count, Double sum, String workexpType, String paymentMode, String comment, Integer isOff, Integer isDelete, Integer submitNumber, Integer hasDetail, String field2) {
        this.suppliesId = suppliesId;
        this.communityId = communityId;
        this.departId = departId;
        this.userId = userId;
        this.personName = personName;
        this.registerTime = registerTime;
        this.suppliesName = suppliesName;
        this.unitCost = unitCost;
        this.count = count;
        this.sum = sum;
        this.workexpType = workexpType;
        this.paymentMode = paymentMode;
        this.comment = comment;
        this.isOff = isOff;
        this.isDelete = isDelete;
        this.submitNumber = submitNumber;
        this.hasDetail = hasDetail;
        this.field2 = field2;
    }

}